import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import { query2obj } from '@feidao/core/querystring';
import client_login from '@feidao/web/atom/browser/msg/user-login';
import put_info from '@feidao/web/atom/browser/storage/put';



export default async function a004(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const name = document.querySelector<HTMLInputElement>('#uname').value;
	const pwd = document.querySelector<HTMLInputElement>('#upwd').value;
	if (name != "" && pwd != "") {
		document.getElementById("login").removeAttribute('disabled');
		document.getElementById("login").style.background = "#FF7F00";
	} else {
		document.getElementById("login").setAttribute("disabled", 'disabled');
		document.getElementById("login").style.background = "#999";
	}
}